package app.controllers.mobileweb;

import app.Const;
import app.models.member.MemberIntegralRecord;
import com.github.sog.controller.BasicController;

import java.util.List;

/**
 * <p>
 * .
 * </p>
 *
 * @author Jerry Ou
 * @version 1.0 2014-02-12 13:41
 * @since JDK 1.6
 */
public class IntegralController extends BasicController {

    public void record() {
        long mid =  getParaToLong(Const.MEMBER_PARAM, 0l);
        List<MemberIntegralRecord> records = MemberIntegralRecord.dao.findByMember(mid);
        setAttr("records", records);
        render("record.ftl");
    }


    public void surplus() {
        render("surplus.ftl");
    }

}
